package oop.Demo05;
import oop.Demo05.Student;
import oop.Demo05.Person;
public class Application {
    //静态方法和非静态方法区别很大!
    public static void main(String[] args) {
        //方法的调用只和左边，定义的数据类型有关
        A a = new A();
        a.test();

        //父类的引用只想了子类
        B b = new A();//子类重写了父类的方法
        b.test();//B
    }
}
/*
    Student student = new Student();
        student.say();

                Student student1 = new Student();
                student1.test1("kml");
                student1.test2();
                Student student2 = new Student();*/
